Piwik\Period\Factory S

Total Complexity 36
Dependencies 12
Dependents 43
Total lines 163
Lines of code 102
Logical lines of code 68
Comment lines 47
Methods 11
Properties 0

Methods 11

Method Rating Maintainability Complexity Lines of code
build()
A
47 11 32
isAnyLowerPeriodDisabledForAPI()
S
56 6 20
makePeriodFromQueryParams()
S
55 5 19
convertRangeToDateIfNeeded()
S
62 6 10
checkPeriodIsEnabled()
S
73 2 5
__construct()
S
91 1 2
shouldHandle()
S
100 1 0
make()
S
100 1 0
throwExceptionInvalidPeriod()
S
69 1 6
isPeriodEnabledForAPI()
S
74 1 4
getPeriodsEnabledForAPI()
S
75 1 4